package com.ddwl.common.feign.wx;

import com.ddwl.schema.vo.gate.wechat.WechatUserInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2021/6/2 17:26
 */
@Api(tags = "微信用户API")
@FeignClient(name = "WxUserApi", path = "/cgi-bin", url = "https://api.weixin.qq.com")
public interface WxUserApi {

    @ApiOperation("获取用户基本信息")
    @GetMapping("/user/info")
    WechatUserInfoVo userInfo(@RequestParam("access_token") String access_token, @RequestParam("openid") String openid);

}
